In a typical Linux/Unix environment, each process has a current working directory known as the root directory (/). By using the 'chroot' command, you can change this root directory for a specific process and its children, effectively isolating the
You can use chroot to set up and run programs or interactive shells such as Bash in an encapsulated filesystem that is prevented from interacting with your regular filesystem. Everything within the chroot environment is penned in and contained. Nothing in